package com.example.benji.mythreemenue;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by win10 on 2018-03-18.
 */

class FirstAdapter extends BaseQuickAdapter<FirstBean,BaseViewHolder> {
    public FirstAdapter( @Nullable List<FirstBean> data) {
        super(R.layout.first_item, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, FirstBean item) {
        helper.addOnClickListener(R.id.tv_first);
        helper.setText(R.id.tv_first,item.getName());

    }
}
